package com.vim.modules.mall.service.remote;

import com.vim.common.constants.Global;
import com.vim.common.exception.BusinessException;
import com.vim.modules.mall.model.base.CommonPage;
import com.vim.modules.mall.model.base.MallResponseEntity;
import com.vim.modules.mall.model.mallGoods.MallGoods;
import com.vim.modules.mall.model.mallGoods.MallGoodsType;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @作者 Administrator
 * @时间 2020-10-12 13:39
 * @版本 1.0
 * @说明
 */
@Component
public class RemoteMallGoodsServiceFallBack implements RemoteMallGoodsService {

    @Override
    public MallResponseEntity<CommonPage<MallGoods>> goodsList(String goodsName, Integer pageNo, Integer pageSize) {
        throw new BusinessException(Global.SERVICE_NOT_AVAILABLE);
    }

    @Override
    public MallResponseEntity<MallGoods> goodsInfo(Long id) {
        throw new BusinessException(Global.SERVICE_NOT_AVAILABLE);
    }

    @Override
    public MallResponseEntity goodsSave(String goodsInfo) {
        throw new BusinessException(Global.SERVICE_NOT_AVAILABLE);
    }

    @Override
    public MallResponseEntity<MallGoodsType> goodsTypeInfo(Long id) {
        throw new BusinessException(Global.SERVICE_NOT_AVAILABLE);
    }

    @Override
    public MallResponseEntity<List<MallGoodsType>> goodsTypeList() {
        throw new BusinessException(Global.SERVICE_NOT_AVAILABLE);
    }

    @Override
    public MallResponseEntity<List<MallGoodsType>> goodsTypeListWithParent(Long pid) {
        throw new BusinessException(Global.SERVICE_NOT_AVAILABLE);
    }
}
